package com.sanxiau.dormitory.yang.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class LoginIn {
    private int user_id;
    private String user_name;
    private String user_pwd;
    private String user_power;
    private String true_name;
    private String link_tel;
    private String email;
    private String link_addre;
    private String state;
    private String id_card;
    private Date register_time;
    private Date login_time;
    private String login_state;
    private String remark;

    public LoginIn() {
    }

    public LoginIn(int user_id, String user_name, String user_pwd, String user_power, String true_name, String link_tel, String email, String link_addre, String state, String id_card, Date register_time, Date login_time, String login_state, String remark) {
        this.user_id = user_id;
        this.user_name = user_name;
        this.user_pwd = user_pwd;
        this.user_power = user_power;
        this.true_name = true_name;
        this.link_tel = link_tel;
        this.email = email;
        this.link_addre = link_addre;
        this.state = state;
        this.id_card = id_card;
        this.register_time = register_time;
        this.login_time = login_time;
        this.login_state = login_state;
        this.remark = remark;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getUser_pwd() {
        return user_pwd;
    }

    public void setUser_pwd(String user_pwd) {
        this.user_pwd = user_pwd;
    }

    public String getUser_power() {
        return user_power;
    }

    public void setUser_power(String user_power) {
        this.user_power = user_power;
    }

    public String getTrue_name() {
        return true_name;
    }

    public void setTrue_name(String true_name) {
        this.true_name = true_name;
    }

    public String getLink_tel() {
        return link_tel;
    }

    public void setLink_tel(String link_tel) {
        this.link_tel = link_tel;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getLink_addre() {
        return link_addre;
    }

    public void setLink_addre(String link_addre) {
        this.link_addre = link_addre;
    }

    public String getId_card() {
        return id_card;
    }

    public void setId_card(String id_card) {
        this.id_card = id_card;
    }

    public String getLogin_state() {
        return login_state;
    }

    public void setLogin_state(String login_state) {
        this.login_state = login_state;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getRegister_time() {
        return register_time;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setRegister_time(Date register_time) {
        this.register_time = register_time;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getLogin_time() {
        return login_time;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setLogin_time(Date login_time) {
        this.login_time = login_time;
    }

    @Override
    public String toString() {
        return "LoginIn{" +
                "user_id=" + user_id +
                ", user_name='" + user_name + '\'' +
                ", user_pwd='" + user_pwd + '\'' +
                ", user_power='" + user_power + '\'' +
                ", true_name='" + true_name + '\'' +
                ", link_tel='" + link_tel + '\'' +
                ", email='" + email + '\'' +
                ", link_addre='" + link_addre + '\'' +
                ", state='" + state + '\'' +
                ", id_card='" + id_card + '\'' +
                ", register_time=" + register_time +
                ", login_time=" + login_time +
                ", login_state='" + login_state + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
